package cn.broadsense.thrid.param;

import cn.broadsense.thrid.result.EvTaskCapacityUsageResult;
import cn.hutool.core.collection.CollUtil;
import lombok.Data;

import java.util.List;

/**
 * 查询任务能力占用接口
 *
 * @author pengxin
 * @date 2022-10-10 14:43
 */
@Data
public class EvTaskCapacityUsageParam extends BaseParam {
    private static final long serialVersionUID = 6756682237513592916L;

    /**
     * 任务id集合
     */
    private List<String> planTasks;

    @Override
    public void checkParam() {
       if(CollUtil.isEmpty(planTasks)){
           throw new SecurityException("任务ID不能为空");
       }
    }

    @Override
    public Class getResultClass() {
        return EvTaskCapacityUsageResult.class;
    }
}
